package com.ruoyi.space.domain;

import java.time.LocalDateTime;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 查看回答对象 space_answer
 * 
 * @author ruoyi
 * @date 2025-04-02
 */
public class SpaceAnswerDto extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 回答ID */
    private Long id;

    /** 回答内容 */
    @Excel(name = "回答内容")
    private String content;

    /** 回答发布人 */
    @Excel(name = "回答发布人")
    private String publisher;

    /** 发布人手机号 */
    @Excel(name = "发布人手机号")
    private String phone;

    /** 回答发布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd-HH:mm:ss")
    @Excel(name = "回答发布时间", width = 30, dateFormat = "yyyy-MM-dd-HH:mm:ss")
    private LocalDateTime publishTime;

    /** 关联的问题ID */
    private Long quesId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }

    public void setPublisher(String publisher) 
    {
        this.publisher = publisher;
    }

    public String getPublisher() 
    {
        return publisher;
    }

    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }

    public void setPublishTime(LocalDateTime publishTime)
    {
        this.publishTime = publishTime;
    }

    public LocalDateTime getPublishTime()
    {
        return publishTime;
    }

    public void setQuesId(Long quesId) 
    {
        this.quesId = quesId;
    }

    public Long getQuesId() 
    {
        return quesId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("content", getContent())
            .append("publisher", getPublisher())
            .append("phone", getPhone())
            .append("publishTime", getPublishTime())
            .append("quesId", getQuesId())
            .toString();
    }
}
